﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Manager.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
<%@ Import Namespace="B2B.Models" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

<h2>QuoteCreate</h2>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="HEAD" runat="server">
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="main_content" runat="server">
    <%
        SP_QuoteCreate quote = (SP_QuoteCreate) ViewData["quoteCreate"];
        string masp = quote.MaSP.ToString();
        string maspm = quote.MaSPM.ToString();
        int loai = int.Parse(ViewData["loai"].ToString());
        string emailNguoiNhan="";
        if (loai == 1)
            emailNguoiNhan = quote.EmailNguoiGui.ToString();
        else
            emailNguoiNhan = quote.EmailNguoiNhan.ToString();
        string emailNguoiGui = Session["email"].ToString();
        string link = quote.Link;
        string tenSP = (string)ViewData["tenSP"];
    %>
    <h6> Management -> Messages & Contact -> Inbox -> Quote Create</h6>  
    <center>    <div align="center">
        <form action="/Manage/QuoteCreate" method="post" enctype="multipart/form-data">
            <!--Bắt đầu thêm báo giá-->
            <table>
                <tr>
                    <th colspan="2">Create Quote</th>
                </tr>
                <tr>
                    <td>Product Name: </td>
                    <td>
                        <a href="<%=link %>"><%=tenSP %></a>
                        <input type="hidden" value="<%=masp %>" name="maSP" />
                        <input type="hidden" value="<%=maspm %>" name="maSPM" />
                    </td>
                </tr>
                <tr>
                    <td>File: </td>
                    <td>
                        <input type="file" name="fileUpLoad" id="fileUpLoad"/>
                    </td>
                </tr>
                <tr>
                    <td>Người nhận:</td>
                    <td>
                        <%=emailNguoiNhan %>
                        <input type="hidden" name="emailNguoiNhan" value="<%=emailNguoiNhan %>" />
                        <input type="hidden" name="emailNguoiGui" value="<%=emailNguoiGui %>" />
                        <input type="hidden" name="loai"= value="<%=ViewData["loai"] %>" />
                        <input type="hidden" name="link" value="<%=link %>" />
                    </td>
                </tr>
                <tr>                    

                    <td colspan="2" align="center"><input type="submit" value="Create"/></td>
                </tr>
            </table>
            <!--Kết thúc thêm báo giá-->
        </form>
         <form action="/Manage/QuoteCreate" method="post" enctype="multipart/form-data">
            
         </form>
    </div>
        </center>

</asp:Content>
